package com.ruoyi.train.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.train.domain.CertApplication;
import com.ruoyi.train.domain.Vo.CertApplicationVo;

/**
 * 办证申请Service接口
 * 
 * @author wusihao
 * @date 2023-04-18
 */
public interface ICertApplicationService extends IService<CertApplication>
{
    /**
     * 查询办证申请
     * 
     * @param id 办证申请主键
     * @return 办证申请
     */
    public CertApplicationVo selectCertApplicationById(Long id);

    /**
     * 查询办证申请列表
     * 
     * @param certApplication 办证申请
     * @return 办证申请集合
     */
    public List<CertApplicationVo> selectCertApplicationList(CertApplication certApplication);

    /**
     * 新增办证申请
     * 
     * @param certApplication 办证申请
     * @return 结果
     */
    public int insertCertApplication(CertApplication certApplication);

    /**
     * 修改办证申请
     * 
     * @param certApplication 办证申请
     * @return 结果
     */
    public int updateCertApplication(CertApplication certApplication);

    /**
     * 批量删除办证申请
     * 
     * @param ids 需要删除的办证申请主键集合
     * @return 结果
     */
    public int deleteCertApplicationByIds(Long[] ids);

    /**
     * 删除办证申请信息
     * 
     * @param id 办证申请主键
     * @return 结果
     */
    public int deleteCertApplicationById(Long id);

    // 通过id查询办证申请表
    CertApplicationVo getCertApplicationById(Long certApplicationId);

    // 特种作业制证审批一级
    List<CertApplicationVo> selecttezhongCertApplicationOneList(CertApplication certApplication);

    // 查询特作审批盖章列表
    List<CertApplicationVo> selecttezhongCertApplicationgaizhangList(CertApplication certApplication);

    int peixunjigousubmittezhongCertApplication(Long certApplicationId);

    // 办证申请表特作审批一
    int tezhongOneApprovalSubmit(CertApplication certCertificate);

    // 查找特种作业审批二级
    List<CertApplicationVo> selecttezhongCertApplicationTwoList(CertApplication certApplication);

    // 特作审批二
    int tezhongTwoApprovalSubmit(CertApplication certCertificate);


    // 特作盖章
    int tezhonggaizhangCertApplication(CertApplication certApplication);

    // 安全管理人员提交列表
    List<CertApplicationVo> selectfuzerenCertSubmitApplicationList(CertApplication certApplication);

    // 培训机构提交安全负责人表
    int peixunjigousubmitfuzerenCertApplication(Long certApplicationId);

    // 查找负责人办证申请审批一
    List<CertApplicationVo> selectfuzerenCertApplicationOneList(CertApplication certApplication);

    // 负责人审批一
    int fuzerenOneApprovalSubmit(CertApplication certCertificate);

    // 查找负责人审批二列表
    List<CertApplicationVo> selectfuzerenCertApplicationTwoList(CertApplication certApplication);

    // 负责人审批二
    int fuzerenTwoApprovalSubmit(CertApplication certCertificate);

    // 负责人盖章
    int fuzerengaizhangCertApplication(CertApplication certApplication);

    // 负责人盖章查询
    List<CertApplicationVo> selectfuzerenCertApplicationgaizhangList(CertApplication certApplication);
}
